package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplierDao {

    List<Supplier> getsupplier(@Param("rows") Integer rows, @Param("offSet") Integer offSet, @Param("supplierName") String supplierName);

    Integer getSupplierCount(@Param("supplierName") String supplierName);

    Supplier findSupplierByName(String supplierName);

    void insertSupplier(Supplier supplier);

    void updateSupplier(Supplier supplier);

    Integer deleteSupplier(@Param("split") String[] split);
}
